Skip to content

Python: samples(mcp): add TWZRD Agent Intel trust verification concept sample#14059

Closed
twzrd-sol wants to merge 1 commit into
microsoft:mainfrom
twzrd-sol:add-twzrd-agent-intel-mcp-concept
Closed

Python: samples(mcp): add TWZRD Agent Intel trust verification concept sample#14059
twzrd-sol wants to merge 1 commit into
microsoft:mainfrom
twzrd-sol:add-twzrd-agent-intel-mcp-concept

Conversation

@twzrd-sol

Copy link
Copy Markdown

Summary

Adds a concept sample demonstrating how to use TWZRD Agent Intel as a remote MCP plugin in a Semantic Kernel agent for trust scoring and x402 payment verification of AI agents on Solana.

File: python/samples/concepts/mcp/agent_with_twzrd_trust_verification.py

What it shows

Uses MCPStreamableHttpPlugin (same pattern as the existing agent_with_http_mcp_plugin.py) to connect to https://intel.twzrd.xyz/mcp and provide a ChatCompletionAgent with TWZRD trust tools:

  • score_agent(wallet) — returns 0-100 trust score + reputation data
  • preflight_check(wallet) — pre-transaction safety check
  • verify_trust_receipt(receipt) — verify x402 payment receipts

Why this fits here

The concepts/mcp/ directory already has agent_with_http_mcp_plugin.py using MCPStreamableHttpPlugin for the Microsoft Learn Docs MCP. TWZRD is another zero-install remote MCP server demonstrating the same connection pattern but for a different domain (Web3/agent trust infrastructure).

Running it

export OPENAI_API_KEY=sk-...
export OPENAI_CHAT_MODEL_ID=gpt-4o-mini
python python/samples/concepts/mcp/agent_with_twzrd_trust_verification.py

No TWZRD API key needed — trust scoring is free.

TWZRD Agent Intel

  • MCP endpoint: https://intel.twzrd.xyz/mcp (Streamable HTTP)
  • PyPI: pip install twzrd-agent-intel
  • MCP config: {"mcpServers": {"twzrd-agent-intel": {"url": "https://intel.twzrd.xyz/mcp"}}}

@twzrd-sol twzrd-sol requested a review from a team as a code owner June 6, 2026 21:23
@moonbox3 moonbox3 added the python Pull requests for the Python Semantic Kernel label Jun 6, 2026
@github-actions github-actions Bot changed the title samples(mcp): add TWZRD Agent Intel trust verification concept sample Python: samples(mcp): add TWZRD Agent Intel trust verification concept sample Jun 6, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated Code Review

Reviewers: 4 | Confidence: 90% | Result: All clear

Reviewed: Correctness, Security Reliability, Test Coverage, Design Approach


Automated review by twzrd-sol's agents

@moonbox3

moonbox3 commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the contribution. This isn't something that we'd like to house in our repo. Please feel free to keep it in your own repo.

@moonbox3 moonbox3 closed this Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Pull requests for the Python Semantic Kernel

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants